package d5;

import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.*;
import com.google.appengine.api.users.User;
import java.util.Date;
import com.google.appengine.api.datastore.*;


@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Message {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	@ForeignKey
	private User user;
	
	@Persistent
	private Text message;
	
	@Persistent
	private Date date;
	
	@Persistent
	private Key topic;
	
	

	
}
